$(document).ready(function () {		
	$('#queryBtn').click(function(){
		showTr();
		//var now=new Date(); 
		var number = Math.random()*6;
		//var number = now.getSeconds()%7;
		//alert(number);
		var stepArr=new Array();
		for(var j=0;j<number;j++){
			var now44=new Date();
			stepArr.push(now44.getSeconds()%6); 
			//alert(now44.getSeconds()%6);
			//stepArr.push(now44.getSeconds()%6);
		}
		for(var i=0;i<stepArr.length;i++){		
		$('.yyy').eq(i).hide();
	}
			//bianlishu(stepArr);
		//$('.yyy').eq(0).hide();
	});
	$('#showDown').click(function(){
		$('#subNewEventTable').removeClass('noned');
		$('#subNewEventTable').addClass('blockd');
		$('#showDown').removeClass('blockd');
		$('#showDown').addClass('noned');
		$('#showUp').removeClass('noned');
		$('#showUp').addClass('blockd');
	});
	
	$('#showUp').click(function (){
		$('#subNewEventTable').removeClass('blockd');
		$('#subNewEventTable').addClass('noned');
		$('#showDown').removeClass('noned');
		$('#showDown').addClass('blockd');
		$('#showUp').removeClass('blockd');
		$('#showUp').addClass('noned');
	});
});

function bianlishu(st){
	for(var i=0;i<st.length;i++){		
		$('.yyy').eq(i).hide();
	}
}

function showTr(){
	for(var i=0;i<6;i++){
		$('.yyy').eq(i).show();
	}	
}